package com.ruoyi.common.utils.wxSend.weixinmoban;

import java.util.TreeMap;

public class TemplateMessage {
	private String touser; // 接收者openid

	private String template_id; // 模板ID

	private String url; // 模板跳转链接

	private TreeMap<String, TreeMap<String, String>> data; // data数据

	// 新增
	private TreeMap<String, String> miniprogram; // 跳小程序所需数据，不需跳小程序可不用传该数据

	/**
	 * 参数
	 *
	 * @param value
	 * @param color 可不填
	 * @return
	 */
	public static TreeMap<String, String> item(String value, String color) {
		TreeMap<String, String> params = new TreeMap<String, String>();
		params.put("value", value);
		params.put("color", color);
		return params;
	}

	//   get / set 已省略

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public String getTemplate_id() {
		return template_id;
	}

	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public TreeMap<String, TreeMap<String, String>> getData() {
		return data;
	}

	public void setData(TreeMap<String, TreeMap<String, String>> data) {
		this.data = data;
	}

	public TreeMap<String, String> getMiniprogram() {
		return miniprogram;
	}

	public void setMiniprogram(TreeMap<String, String> miniprogram) {
		this.miniprogram = miniprogram;
	}
}